﻿using System.Collections.Generic;
using LibraryManagement.Helpers;

namespace LibraryManagement.Domain.UserManagement
{
    public class User: UserBase
    {
        public User(string userName, string password)
        {

            this.UserName = userName;
            this.Password = password.ToHash();
        }

        public User(string userName, byte[] password)
        {
            this.UserName = userName;
            this.Password = password;
        }

        public string Code { get; set; }
        public List<Book> BorrowingBooks { get; set; }
        public List<ReservationRequest> ReservationRequests { get; set; }
    }
}
